import { post } from '@/utils/ajax'

// 新增实体
export function insertModelEntity(params) {
  return post('/uni/entity/info/insertModelEntity', params)
}

// 新增属性
export function insertModelParam(params) {
  return post('/uni/entity/info/insert', params)
}

// 编辑实体
export function updateModelEntity(params) {
  return post('/uni/entity/info/updateById', params)
}

// 获取实体详情
export function selectModelEntityById(id) {
  return post('/uni/entity/info/selectById', { id })
}

// 获取实体树
export function getModelEntityTree(params) {
  return post('/uni/entity/info/entityTreeList', params)
}

// 复制实体
export function copyModelEntity(params) {
  return post('/uni/entity/info/copyModel', params)
}

// 根据id获取实体树
export function getModelEntityTreeByids(entityIds) {
  return post('/uni/entity/info/entityTreeListByEntityIds', {entityIds})
}
